﻿@model IQueryable<Orion.Models.User>
@{
    ViewBag.Title = "IRIS - Hafa Samband";
}

<section id="main_content_wrapper">
<section id="main_content">
    <h1>Almenn fyrirspurn</h1>
    <p>Hugsað fyrir almennar fyrirspurnir um ættleiðingar eða hluti tengda þeim sem hafa ekki afmarkað svið.</p>
    
     @foreach (var u in @Model)
    {
        if ( Roles.IsUserInRole( u.aspnet_User.UserName, "General" ) && u.Valid == true ) 
        {
            <div class="user_info_wrapper">
             
            <h3>
            <div class="contactIconsWrapper">

                <a href="mailto:@Membership.GetUser(u.aspnet_User.UserName).Email" title="Senda tölvupóst"><img class="contactIcons" src="@Url.Content("~/Content/images/mail.png")"/></a>
                <a href="/Questions/Enquiry/@u.ID" title="Senda fyrirspurn"><img class="contactIcons" src="@Url.Content("~/Content/images/question.png")"/></a>
         
            </div>
            <a href="/Questions/Enquiry/@u.ID">@u.FirstName @u.MiddleName @u.LastName</a>
            
            </h3>
            @if(u.Picture != "no pic" && u.Picture != null)
            {
             <img class="user_image" src="@u.Picture" alt="@u.Picture" />
                }
            @if( u.WorkPhone != null )
            {
                <p><b>Sími: </b>@u.HomePhone</p>
            }
            <b>Um Starfsmann:</b>
            <p class="shortenMeIndex">@u.Info</p>
            <b><a href="/Questions/Enquiry/@u.ID">Senda fyrirspurn</a></b> 
            </div>    
        }
    }
      </section>

<section id="main_content">
    <h1>Stjórnendur</h1>
    <p>Taka við beiðnum sem varða galla á vefsíðu eða kvörtunum um virkni hennar.</p>

    @foreach (var u in @Model)
    {
        if (Roles.IsUserInRole(u.aspnet_User.UserName, "Admin") && u.Valid == true) 
        {
            <div class="user_info_wrapper">
             
            <h3>
            <div class="contactIconsWrapper">

                <a href="mailto:@Membership.GetUser(u.aspnet_User.UserName).Email" title="Senda tölvupóst"><img class="contactIcons" src="@Url.Content("~/Content/images/mail.png")"/></a>
                <a href="/Questions/Enquiry/@u.ID" title="Senda fyrirspurn"><img class="contactIcons" src="@Url.Content("~/Content/images/question.png")"/></a>
         
            </div>
            <a href="/Questions/Enquiry/@u.ID">@u.FirstName @u.MiddleName @u.LastName</a>
            
            </h3>
            @if(u.Picture != "no pic" && u.Picture != null)
            {
             <img class="user_image" src="@u.Picture" alt="@u.Picture" />
                }
            @if (u.WorkPhone != null)
            {
                <p><b>Sími: </b>@u.HomePhone</p>
            }
            <b>Um Starfsmann:</b>
            <p class="shortenMeIndex">@u.Info</p>
            <b><a href="/Questions/Enquiry/@u.ID">Senda fyrirspurn</a></b> 
            </div>      
        }
    }
</section>
<section id="main_content">
    <h1>Starfsmaður</h1>
    <p>Miðlar upplýsingum til notenda og svara almennum fyrirspurnum.</p>

     @foreach (var u in @Model)
     {
         if (Roles.IsUserInRole(u.aspnet_User.UserName, "Staff") && u.Valid == true)
         {
            <div class="user_info_wrapper">
             
            <h3>
            <div class="contactIconsWrapper">

                <a href="mailto:@Membership.GetUser(u.aspnet_User.UserName).Email" title="Senda tölvupóst"><img class="contactIcons" src="@Url.Content("~/Content/images/mail.png")"/></a>
                <a href="/Questions/Enquiry/@u.ID" title="Senda fyrirspurn"><img class="contactIcons" src="@Url.Content("~/Content/images/question.png")"/></a>
         
            </div>
            <a href="/Questions/Enquiry/@u.ID">@u.FirstName @u.MiddleName @u.LastName</a>
            
            </h3>
             @if(u.Picture != "no pic" && u.Picture != null)
            {
             <img class="user_image" src="@u.Picture" alt="@u.Picture" />
                }
            @if (u.WorkPhone != null)
            {
                <p><b>Sími: </b>@u.HomePhone</p>
            }
            <b>Um Starfsmann:</b>
            <p class="shortenMeIndex">@u.Info</p>
            <b><a href="/Questions/Enquiry/@u.ID">Senda fyrirspurn</a></b> 
            </div>        
         }
    }

</section>
</section>
